package coom.zwj.reggie;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j//打印日志
@SpringBootApplication
@ServletComponentScan
/*@ServletComponentScan 的作用:
在SpringBoot项目中, 在引导类/配置类上加了该注解后,
 会自动扫描项目中(当前包及其子包下)的
 @WebServlet , @WebFilter , @WebListener 注解,
 自动注册Servlet的相关组件 */
@EnableCaching
public class ReggieApplication {
    public static void main(String[] args) {
        SpringApplication.run(ReggieApplication.class, args);
        log.info("项目启动成功");
    }

}

